﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AdminUserManager.aspx.cs"
    Inherits="Face.Web.Admin.admin" %>

<!DOCTYPE html>
<html lang="en">
<head id="Head1" runat="server">
    <meta charset="utf-8" />
    <title>后台</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta name="description" content="" />
    <meta name="author" content="" />
    <link href="../css/bootstrap.min.css" rel="stylesheet" media="screen" />
    <style type="text/css">
        body
        {
            padding-bottom: 40px;
        }
    </style>
    <link href="../css/bootstrap-responsive.min.css" rel="stylesheet" media="screen" />
</head>
<body>
    <form id="form1" runat="server">
    <%--这是顶上的导航栏--%>
    <div class="row">
        <div class="span12">
            <div class="row">
                <div class="span3 offset1">
                    <p>
                        <a href="../index.aspx">
                            <img src="/img/logo.png" alt="GatherContent logo"></a></p>
                </div>
                                <div class="span2 pull-right">
                    &nbsp
                    <div class="span3">
                        <div class="row">
                            <div class="span1">
                                <a href="/index.aspx" class=""><span style="color: Gray; font-size: small">主页</span></a>
                            </div>
                            <%if (Session["admin"] == null)
                              {%>
                            <div class="span1">
                                <a href="/login_and_signup/signup.aspx">现在就注册</a>
                            </div>
                            <div class="span1">
                                <a href="/login_and_signup/login.aspx" class="btn btn-inverse btn-mini">登录</a>
                            </div>
                            <%
                                }
                              else
                              {%>
                            <div class="btn-group">
                                <a class="btn btn-mini dropdown-toggle ajax-dropdown-toggle" data-toggle="dropdown"
                                    href="#"><span>
                                        <%=Session["admin"].ToString()%></span> <span class="caret"></span></a>
                                <ul class="dropdown-menu pull-right">
                                    <li>
                                        <asp:LinkButton ID="LinkButton1" CssClass="item" runat="server" OnClick="btn_logout">Logout</asp:LinkButton></li>
                                </ul>
                            </div>
                            <%} %>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <div class="navbar navbar-inverse">
        <div class="navbar-inner">
            <div class="container">
            </div>
        </div>
    </div>
    <%--/这是顶上的导航栏--%>
    <div class="container">
        <div class="row">
            <div class="span3">
                <div class="well sidebar-nav">
                    <ul class="nav nav-list">
                        <li class="nav-header">管理</li>
                        <li class="active"><a href="#">用户管理</a></li>
                        <li><a href="AdminVideoManager.aspx">视频管理</a></li>
                        <li><a href="AddAnnouncement.aspx">发布公告</a></li>
                    </ul>
                </div>
                <!--/.well -->
            </div>
            <!--/span-->
            <div class="span9">
                <div class="row-fluid">
                    <div class="span4">
                        <p>
                            <span class="label">排序：</span>
                            <asp:Button ID="name" runat="server" href="#" Text="按名称排序" OnClick="SortByName" CssClass="btn btn-small btn-success" />
                            <asp:Button ID="time" runat="server" href="#" Text="按注册时间排序" OnClick="SortByTime"
                                CssClass="btn btn-small btn-success" />
                        </p>
                    </div>
                    <div class="span4 pull-right">
                        <p>
                            <form class="form-search pull-right">
                            <input id="searchBox" runat="server" type="text" class="input-medium search-query">
                            <asp:Button ID="Search" runat="server" Text="搜索" OnClick="SearchUser" CssClass="btn btn-primary" />
                            </form>
                        </p>
                    </div>
                </div>
                <div class="row-fluid">
                    <asp:Repeater ID="User_info" runat="server" OnItemCommand="Button_Clicked">
                        <HeaderTemplate>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <div class="span2 ">
                                <p>
                                    <a href="#">
                                        <img class="img-rounded" style="height:100px; width:100px;" alt="" src="<%# Eval("user_avatar") %>" /></a></p>
                                <div class="row-fluid">
                                    <i class="icon-user"></i>
                                   <font color="#3399ff"> <%# Eval("username")%></font>
                                </div>
                                <div class="row-fluid">
                                    <i class="icon-time"></i>
                                    <font color=gray><%# Eval("register_date")%></font>
                                </div>
                                <p>
                                    <div class="row-fluid">
                                        <div class="span6">
                                            <asp:Button ID="Button2" runat="server" Text="查看" CommandName="CheckUser" CommandArgument='<%# Eval("userinfo_id")%>'
                                                CssClass="btn btn-primary" />
                                        </div>
                                        <div class="span6">
                                            <asp:Button ID="Button1" runat="server" Text="删除" CommandName="DeleteUser" CommandArgument='<%# Eval("userinfo_id")%>'
                                                CssClass="btn btn-danger" />
                                        </div>
                                    </div>
                                </p>
                            </div>
                        </ItemTemplate>
                        <FooterTemplate>
                        </FooterTemplate>
                    </asp:Repeater>
                </div>
                <ul class="pager">
                    <li>
                        <asp:LinkButton ID="PageBtnLast" runat="server" OnClick="LastPage">上一页</asp:LinkButton></li>
                    <li>
                        <asp:LinkButton ID="PageBtnNext" runat="server" OnClick="NextPage">下一页</asp:LinkButton></li>
                </ul>
            </div>
        </div>
    </div>
    <hr>
    <div id="footer">
        <div class="container">
            <p class="muted credit">
                2013 &copy FGSB All Right Reserved
            </p>
        </div>
    </div>
    </form>
    <script src="../js/jquery-2.0.0.min.js" type="text/javascript"></script>
    <script src="../js/bootstrap.min.js" type="text/javascript"></script>
</body>
</html>
